package org.visitor.visitorserver.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.visitor.visitorserver.entity.Appointment;
import org.visitor.visitorserver.mapper.AppointmentMapper;
import org.visitor.visitorserver.service.AppointmentServiceInter;

import java.sql.Date;
import java.util.Map;

@Service
public class AppointmentServiceImpl implements AppointmentServiceInter {
    @Autowired
    private AppointmentMapper appointmentMapper;

    @Override
    public void insertOneAppointment(Map<String, String> request) {
        Appointment appointment = new Appointment();
        String userName = request.get("userName");
        String userSfz = request.get("userSfz");
        String userCompany = request.get("userCompany");
        String professorName = request.get("professorName");
        String appointmentTime = request.get("appointmentTime");
        String appointmentContent = request.get("appointmentContent");

        // todo: 将appointmentTime转换成Date格式
        // Date date = new Date();

//        appointment.setUserId();

    }
}
